package com.scut.dispatching_server.model;

import java.time.LocalDateTime;

public class Demand {
    private String id;
    private float lon;
    private float lat;
    private LocalDateTime time;

    public Demand(String id, float lon, float lat, LocalDateTime localDateTime) {
        this.id = id;
        this.lon = lon;
        this.lat = lat;
        this.time = localDateTime;

    }
    public Demand(String id, float lon, float lat) {
        this.id = id;
        this.lon = lon;
        this.lat = lat;
        this.time = LocalDateTime.now();
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public float getLon() {
        return lon;
    }

    public void setLon(float lon) {
        this.lon = lon;
    }

    public float getLat() {
        return lat;
    }

    public void setLat(float lat) {
        this.lat = lat;
    }

    public LocalDateTime getTime() {
        return time;
    }

}
